package com.best.main;

import com.best.config.TxConfig;
import com.best.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Jiang Akang
 * employeeId: BG435424
 * @date 2021/6/5
 **/
public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TxConfig.class);
        UserService userService = (UserService) applicationContext.getBean("userService");
        userService.accountMoney();
    }
}
